diff options
| author | Adam Soltys <[email protected]> | 2023-02-02 23:26:34 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-02-02 23:29:42 -0800 |
| commit | 9a53b429daf44da7a4272db56350ef32ca494de5 (patch) | |
| tree | a2dc51e4f16fab464788c54dd60e6c18dc8923b0 /src/routes/(app)/[username]/invoice/+server.js | |
| parent | 4eb51e283cc88e7c3e81718d917fa263d8fae65c (diff) | |
| download | coinos-ui-9a53b429daf44da7a4272db56350ef32ca494de5.tar.gz coinos-ui-9a53b429daf44da7a4272db56350ef32ca494de5.zip | |
move invoices, combine profile and dashboard
Diffstat (limited to 'src/routes/(app)/[username]/invoice/+server.js')
| -rw-r--r-- | src/routes/(app)/[username]/invoice/+server.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/routes/(app)/[username]/invoice/+server.js b/src/routes/(app)/[username]/invoice/+server.js new file mode 100644 index 00000000..1321739e --- /dev/null +++ b/src/routes/(app)/[username]/invoice/+server.js @@ -0,0 +1,5 @@ +import { auth, post } from '$lib/utils'; +import { json } from '@sveltejs/kit'; + +export let POST = async ({ cookies: c, request: r }) => + json(await post('/invoice', await r.json(), auth(c))); |
